package com.plm.maque.service;

import com.alipay.api.AlipayApiException;
import com.plm.maque.domain.bo.BizContent;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Limi
 * @create 2020-06-28 21:10
 */
public interface PayService {

    /**
     * 调用服务端SDK生成支付订单信息
     * @return
     * @throws AlipayApiException
     */
    String createOrder() throws AlipayApiException;

    /**
     * 调用服务端SDK生成支付订单信息
     * @return
     * @throws AlipayApiException
     */
    String createMqOrder(double allPrice) throws AlipayApiException;

    /**
     * 处理异步回调
     * @param request
     */
    String handleCallback(HttpServletRequest request);

    /**
     * 交易查询接口
     * @param bizContent
     * @return
     * @throws AlipayApiException
     */
    String queryTrade(BizContent bizContent) throws AlipayApiException;
}
